Optimal. Leaf size=130 \[ \frac {2 a (4 A+5 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {4 a (4 A+5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {2 a A \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d \sqrt {a \sec (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.33, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {2955, 4015, 3805, 3804} \[ \frac {2 a (4 A+5 B) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {4 a (4 A+5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {2 a A \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{5 d \sqrt {a \sec (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2955
Rule 3804
Rule 3805
Rule 4015
Rubi steps
\begin {align*} \int \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)} (A+B \sec (c+d x))}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}}+\frac {1}{5} \left ((4 A+5 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sec ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 a (4 A+5 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}}+\frac {1}{15} \left (2 (4 A+5 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {4 a (4 A+5 B) \sin (c+d x)}{15 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 a (4 A+5 B) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a A \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 79, normalized size = 0.61 \[ \frac {2 \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {a (\sec (c+d x)+1)} \left ((4 A+5 B) \cos (c+d x)+3 A \cos ^2(c+d x)+8 A+10 B\right )}{15 d (\cos (c+d x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 81, normalized size = 0.62 \[ \frac {2 \, {\left (3 \, A \cos \left (d x + c\right )^{2} + {\left (4 \, A + 5 \, B\right )} \cos \left (d x + c\right ) + 8 \, A + 10 \, B\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{15 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \sec \left (d x + c\right ) + A\right )} \sqrt {a \sec \left (d x + c\right ) + a} \cos \left (d x + c\right )^{\frac {5}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.79, size = 86, normalized size = 0.66 \[ -\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (3 A \left (\cos ^{2}\left (d x +c \right )\right )+4 A \cos \left (d x +c \right )+5 B \cos \left (d x +c \right )+8 A +10 B \right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (\sqrt {\cos }\left (d x +c \right )\right )}{15 d \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.84, size = 296, normalized size = 2.28 \[ \frac {\sqrt {2} {\left (30 \, \cos \left (\frac {4}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, \cos \left (\frac {2}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) - 30 \, \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) \sin \left (\frac {4}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) - 5 \, \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) \sin \left (\frac {2}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) + 6 \, \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, \sin \left (\frac {3}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) + 30 \, \sin \left (\frac {1}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right )\right )} A \sqrt {a} - 10 \, {\left (3 \, \sqrt {2} \cos \left (\frac {3}{2} \, \arctan \left (\sin \left (d x + c\right ), \cos \left (d x + c\right )\right )\right ) \sin \left (d x + c\right ) - {\left (3 \, \sqrt {2} \cos \left (d x + c\right ) + 2 \, \sqrt {2}\right )} \sin \left (\frac {3}{2} \, \arctan \left (\sin \left (d x + c\right ), \cos \left (d x + c\right )\right )\right ) - 3 \, \sqrt {2} \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (d x + c\right ), \cos \left (d x + c\right )\right )\right )\right )} B \sqrt {a}}{60 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\cos \left (c+d\,x\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________